package com.zsck.zsgy.ui.main.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseDataBindingHolder
import com.zsck.zsgy.R
import com.zsck.zsgy.app.MyApplication
import com.zsck.zsgy.databinding.ItemHotHouseBinding
import com.zsck.zsgy.ui.main.bean.HomeBean.HotHouseBean
import com.zsck.zsgy.util.Constants
import com.zsck.zsgy.util.GlideUtils

class HomeHotAdapter:
    BaseQuickAdapter<HotHouseBean, BaseDataBindingHolder<ItemHotHouseBinding>>(R.layout.item_hot_house){


    override fun convert(holder: BaseDataBindingHolder<ItemHotHouseBinding>, item: HotHouseBean) {
        if(holder.dataBinding!=null){
            holder.dataBinding!!.hotHouse=item
            GlideUtils.displayWithConner(Constants.IMG_HOST + item.projectCoverFile.getFileId() ,holder.dataBinding!!.ivIcon
            ,MyApplication.context,13)

        }

    }
}